package com.sq.partner.manager.dao;

import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.ActirationCardDifinition;
import com.sq.partner.manager.mybatis.model.GatewayChannelDemandConfig;
import com.sq.partner.manager.util.Page;

/**
 *
 * @author zsm 2019年1月16日
 *
 */
public interface GatewayChannelDemandConfigDao extends BaseDao {
	
	public Page<GatewayChannelDemandConfig> queryDemandPage(Page<GatewayChannelDemandConfig>page)throws Exception;
	
	public  Integer queryDemandCount(Map<String,Object>map)throws Exception;
	
	public void insertDemands(List<GatewayChannelDemandConfig> list)throws Exception;

	public void addVersion(GatewayChannelDemandConfig gatewayChannelDemandConfig)throws Exception;
	
	public GatewayChannelDemandConfig selectDemandForUpdate(Map<String,Object>map)throws Exception;
	
	public boolean updateDemandByID(GatewayChannelDemandConfig info) throws Exception;
	
	public List<GatewayChannelDemandConfig> selectDemandCost(Map<String,Object>map) throws Exception;
	
	public void addCost(GatewayChannelDemandConfig config)throws Exception;
	
	public List<GatewayChannelDemandConfig> queryPartnerInfo(GatewayChannelDemandConfig info) throws Exception;
	
	public List<GatewayChannelDemandConfig> queryVersionInfo(GatewayChannelDemandConfig info) throws Exception;
	
	public List<GatewayChannelDemandConfig> queryDemandInfo(GatewayChannelDemandConfig info) throws Exception;
	
	public boolean deleteChannelCost(Map<String,Object>map)throws Exception;
	
	public boolean deleteChannelDemand(Map<String,Object>map)throws Exception;
	
	public int queryVersionExist(String channelVersion)throws Exception;
	
	public List<GatewayChannelDemandConfig> demandExportSelect(Map<String,Object>map)throws Exception;
	
	public boolean updateDemandCostByID(GatewayChannelDemandConfig info)throws Exception;
	
	public List<String> queryChannelCodeByParameter(Map<String,Object>map)throws Exception;
}
